package com.mdd.common.util.em;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;

@Configuration
public class EMConfig {

	/**
	 * 测试
	 * 1126220315114898#demo
	 * YXA6FNFEHZTUTYeFpSwxQbIiBA
	 * YXA6OYVBqHiM2WPBGs4lLbgIJuVd2kw
	 */
	@Bean
	public EMService service() {
		EMProperties properties = EMProperties.builder()
				.setAppkey("1140240105154206#demo")
				.setClientId("YXA607YldSwDTc2H1U7jwBwOVQ")
				.setClientSecret("YXA6wmoQcyAcU6aTa2710yNUAVxdIPU")
				.build();
		return new EMService(properties);
	}
}
